<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * 处理教育信息相关的操作
 *
 * @author eoe2005
 */
class EduAction {
    /**
     *添加一个学校
     */
    public function addSchool(){
        $name = post('name');
        if(!empty($name)){
            $school = new SchoolModel;
            $row = $school->getSchoolByName($name);
            if($row){
                return $row;
            }else{
                $school->addSchool($name, $type, $pid, $cid, $addr);
            }
        }
        return Error::PARAM_ABSENCE;
    }
    //获取学校信息
    public function getSchool(){
        
    }
    /**
     *添加班级 
     */
    public function addClass(){
        
    }
    /**
     *获取班级信息 
     */
    public function getClass(){
        
    }
}

?>
